#ifndef SAMPLE_SQUARE_H
#define SAMPLE_SQUARE_H


#include "BaseSample.h"

static GLfloat squareVertices[] = {
        -0.5f, 0.5f, 0.0f,
        -0.5f, -0.5f, 0.0f,
        0.5f, -0.5f, 0.0f,
        0.5f, 0.5f, 0.0f,
};
static GLfloat *squareColorVertices = new GLfloat[] {
        1.0f, 0.0f, 0.0f, 1.0f,
        0.0f, 1.0f, 0.0f, 1.0f,
        0.0f, 0.0f, 1.0f, 1.0f,
        0.0f, 0.0f, 0.0f, 1.0f,
};

class SampleSquare : public BaseSample
{
public:
    SampleSquare();
    ~SampleSquare();

    virtual void LoadImage(NativeImage *pImage);

    virtual void Init();

    virtual void Draw();

    virtual void Destroy();

    virtual void setParentViewSize(int w, int h);
    virtual void OnSurfaceCreated();
    virtual void OnSurfaceChanged(int width, int height);
};


#endif